<?php
/**
 * (crontab) fba到货异常
 */
namespace App\Crontab\Daily;

use App\Logic\Delivery\ExCheck AS DeliveryLExCheck;
use App\Logic\OverSeasOut\FBAExCheck AS OverSeasOutLFBAExCheck;
use App\Logic\OverSeasOut\RemovaleExCheck AS OverSeasOutLRemovaleExCheck;
class FulfillmentExCheck
{
    /**
     * 1 => '正常',
     * 2 => '超7天未发货',//更新后恢复待校验状态
     * 3 => '发货后超7天未到货',//系统抓取到货数据，有到货记录后恢复待校验状态
     * 4 => '发货后超20天到货有差异',//销售确认后恢复正常
     */
    /**
     * 国内出仓-发FBA
     * 每日运行5 21 * * *
     */
    public static function dFExCheck(){
        DeliveryLExCheck::handle();
    }

    /**
     * 海外仓-中转出仓发FBA
     * 每日运行10 21 * * *
     */
    public static function osFBAFTrackExCheck(){
        OverSeasOutLFBAExCheck::handle();
    }

    /**
     * 海外仓-移库出仓发FBA
     * 每日运行15 21 * * *
     */
    public static function osRemovaleFTrackExCheck(){
        OverSeasOutLRemovaleExCheck::handle();
    }
}
